/*
 * This code is property of CoreObjects. Use, duplication and disclosure
 * in any form without permission of copyright holder is prohibited.
 *
 */

package com.nen.session;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author amitm
 */
public class ServiceRequest {
    private HttpServletRequest _request;
    private String sessionId;
    private boolean fetchUserInfo;

    public ServiceRequest(HttpServletRequest _request) {
        this._request = _request;
        parseRequest();
    }

    private void parseRequest() {
        sessionId = _request.getParameter("sessionId");
        System.out.println(">>>> SessionId requested = "+sessionId);
        fetchUserInfo = Boolean.valueOf(_request.getParameter("fetchUserInfo"));
        System.out.println(">>>> fetchUserInfo = "+fetchUserInfo);
    }

    public boolean isFetchUserInfo() {
        return fetchUserInfo;
    }

    public String getSessionId() {
        return sessionId;
    }

    

}
